//
//  WelfareDetailViewController.m
//  suRead
//
//  Created by Kobe LI on 16/4/28.
//  Copyright © 2016年 bao. All rights reserved.
//

#import "WelfareDetailViewController.h"
#import "ShareService.h"

#import "M_Fuli.h"

@interface WelfareDetailViewController ()
@property (nonatomic,weak) IBOutlet UIWebView *infoWebView;

@end

@implementation WelfareDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    self.automaticallyAdjustsScrollViewInsets = NO;
    
    M_Fuli *fuli = (M_Fuli *)self.data_;

    
    __weak typeof(self) weak_self = self;
    
    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(.1f * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
        NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:fuli.f_url]];
        [weak_self.infoWebView loadRequest:request];
        
    });
    
}

- (IBAction)back:(id)sender {
    [self.navigationController popViewControllerAnimated:YES];
    [self dismissViewControllerAnimated:YES completion:nil];
}

- (IBAction)share:(id)sender
{
}

@end
